package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.ServiceMerchant;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ServiceMerchantDao extends BaseMapper<ServiceMerchant> {
    @Select("select * from service_merchant where id=#{cid}")
    ServiceMerchant findByMid(Integer id);
    @Select("select * from service_merchant")
    List<ServiceMerchant> findAll();
}
